Bug 314084 - GTK+ dialogs should not be placed partially offscreen
authorTor Lillqvist <tml@novell.com>
Thu, 20 Mar 2008 03:00:45 +0000 (03:00 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Thu, 20 Mar 2008 03:00:45 +0000 (03:00 +0000)
commitaae6c90fdf9b6c1af1b0294d812910dfe135ec6f
tree661632461279519bc73c9e31c937293a9939ae62
parent90c781e881eeb56884ec0ad6fb76da4ba730f586
Bug 314084 - GTK+ dialogs should not be placed partially offscreen

2008-03-20  Tor Lillqvist  <tml@novell.com>

Bug 314084 - GTK+ dialogs should not be placed partially offscreen

* gtk/gtkwindow.c (clamp): New function. Clamps a window position
in one dimension, or centered in case it doesn't fit.
(clamp_window_to_rectangle): Simplify. Call clamp() for x and y
dimensions.

svn path=/trunk/; revision=19907
ChangeLog
gtk/gtkwindow.c